package fr.afcepf.atod19.dreamproject.business.implementation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

import fr.afcepf.atod19.dreamproject.business.interfaces.TestIBusinessCommande;
import fr.afcepf.atod19.dreamproject.dao.interfaces.TestIDaoCommande;
import fr.afcepf.atod19.dreamproject.entity.Commande;

public class TestBusinessCommande implements TestIBusinessCommande {

	static Logger logger = LoggerFactory.getLogger(TestBusinessCommande.class);
	private TestIDaoCommande testCommande;

	/**
	 * @param c
	 */

	@Transactional
	@Override
	public int createCommande(Commande cmd) {
		System.out.println("pouet");
		return testCommande.createCommande(cmd);
	}

	public void setClassDeTests(TestIDaoCommande c) {
		this.testCommande = c;
	}

	public TestIDaoCommande getTestCommande() {
		return testCommande;
	}

	public void setTestCommande(TestIDaoCommande testCommande) {
		this.testCommande = testCommande;
	}
	
	

}